package com.googlecode.cpbi.util;

/**
 * @author Jeremy Wales
 */
public class StringUtils {

	private StringUtils() {
	}

	public static String trimLeading(char charToTrim, String stringToTrimFrom) {
		StringBuffer buffer = new StringBuffer(stringToTrimFrom);
		while (buffer.length() > 0 && buffer.charAt(0) == charToTrim) {
			buffer.deleteCharAt(0);
		}
		return buffer.toString();
	}
}
